#define _CRT_SECURE_NO_WARNINGS 1

#include "Heap.h"


void test()
{
	Heap h;
	HeapInit(&h);
	HeapPush(&h, 12);
	HeapPrint(&h);
	HeapPush(&h, 18);
	HeapPrint(&h);
	HeapPush(&h, 2);
	HeapPrint(&h);
	HeapPush(&h, 1);
	HeapPrint(&h);
	HeapPush(&h, 5);
	HeapPrint(&h);
	HeapPop(&h);
	HeapPrint(&h);
	HeapPop(&h);
	HeapPrint(&h);
	HeapPop(&h);
	HeapPrint(&h);
	HeapPop(&h);
	HeapPrint(&h);
	HeapDestroy(&h);
}
int main()
{
	test();
	return 0;
}